package com.ruoyi.system.domain;

import java.io.Serializable;

/**
 * 单词实体
 */
public class Word implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long categoryId; // 分类ID
    private String word;
    private String phonetic;
    private String meaning;
    private String imageUrl;
    private String audioUrl;

    public Word() {}

    public Word(Long id, Long categoryId, String word, String phonetic, String meaning, String imageUrl, String audioUrl) {
        this.id = id;
        this.categoryId = categoryId;
        this.word = word;
        this.phonetic = phonetic;
        this.meaning = meaning;
        this.imageUrl = imageUrl;
        this.audioUrl = audioUrl;
    }

    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public Long getCategoryId() { return categoryId; }
    public void setCategoryId(Long categoryId) { this.categoryId = categoryId; }

    public String getWord() { return word; }
    public void setWord(String word) { this.word = word; }

    public String getPhonetic() { return phonetic; }
    public void setPhonetic(String phonetic) { this.phonetic = phonetic; }

    public String getMeaning() { return meaning; }
    public void setMeaning(String meaning) { this.meaning = meaning; }

    public String getImageUrl() { return imageUrl; }
    public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; }

    public String getAudioUrl() { return audioUrl; }
    public void setAudioUrl(String audioUrl) { this.audioUrl = audioUrl; }

    @Override
    public String toString() {
        return "Word{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", word='" + word + '\'' +
                ", phonetic='" + phonetic + '\'' +
                ", meaning='" + meaning + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", audioUrl='" + audioUrl + '\'' +
                '}';
    }
}
